import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import mastExample from '@/components/plugsExample/mastExample.vue'

const routes = [
  {
    path: '/',
    name: 'root',
    redirect: '/home',
  },
  {
    path: '/home',
    name: 'Home',
    component: Home,
    redirect: '/mast',
    children:[
      {
        path:'/mast',
        name:'mastExample',
        component: mastExample

      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
